package com.qt.controller.oj;

import com.qt.annotation.OpenApi;
import com.qt.pojo.dto.SubmitJudgeDTO;
import com.qt.result.R;
import com.qt.service.oj.JudgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pgw
 * @version 1.0
 * @description
 * @date Create by 2023/9/25 11:44
 */
@OpenApi
@RestController
public class JudgeController {

    @Autowired
    private JudgeService judgeService;

    @PostMapping("/submit-problem-judge")
    public R submitProblemJudge( @RequestBody SubmitJudgeDTO submitJudgeDto){

        return judgeService.submitProblemJudge(submitJudgeDto);
    }
}
